package com.blade.excel;

import org.apache.poi.hssf.usermodel.HSSFWorkbook;
import org.apache.poi.ss.usermodel.Workbook;

import java.io.FileOutputStream;
import java.io.IOException;

/**
 * 创建一个空的xls文件
 */
public class CreateCells {
    public static void main(String[] strings) throws IOException {
        // 创建一个excel文件
        Workbook wb = new HSSFWorkbook();

        FileOutputStream fileOut = new FileOutputStream("c:\\workbook.xls");
        wb.write(fileOut);
        fileOut.close();

    }
}
